package com.gw.smscheck.entity.sys;

import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;

/**
 * 数据字典
 * @author pzr
 * @date 2018年7月24日
 */
public class DataDictionary extends BasePager{
	
	private Integer id;
	/**
	 * 名称
	 */
	private String name;
	/**
	 * 编码
	 */
	private String code;
	/**
	 * 值
	 */
	private String value;
	/**
	 * 父id
	 */
	private Integer pid;
	/**
	 * 父节点名称
	 */
	private String pname;
	/**
	 * 备注
	 */
	private String remark;
	/**
	 * 创建时间
	 */
	private String createTime;
	/**
	 * 创建人
	 */
	private String createUser;
	/**
	 * 状态
	 */
	private Integer state;
	/**
	 * 排序
	 */
	private Integer sort;/**
	 * 排序
	 */
	private String index;

	private List<DataDictionary> children = new ArrayList<>();


	public List<DataDictionary> getChildren() {

		return children;
	}
	public void setChildren(List<DataDictionary> children) {

		this.children = children;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public Integer getPid() {
		return pid;
	}
	public void setPid(Integer pid) {
		this.pid = pid;
	}

	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public String getCreateUser() {
		return createUser;
	}

	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}

	public String getPname() {
		return pname;
	}

	public void setPname(String pname) {
		this.pname = pname;
	}

	public String getIndex() {
		return index;
	}

	public void setIndex(String index) {
		this.index = index;
	}

	@Override
	public String toString() {
		return "DataDictionary{" +
				"id=" + id +
				", name='" + name + '\'' +
				", code='" + code + '\'' +
				", value='" + value + '\'' +
				", pid=" + pid +
				", pname='" + pname + '\'' +
				", remark='" + remark + '\'' +
				", createTime='" + createTime + '\'' +
				", createUser='" + createUser + '\'' +
				", state=" + state +
				", sort=" + sort +
				", index='" + index + '\'' +
				", children=" + children +
				'}';
	}
}
